package nl.mayisal.metadata;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class DatabaseStructure {
	private final HashMap<String,TableStructure> tables = new HashMap<String,TableStructure>();
	private final String name;
	
	public DatabaseStructure(String name) {
		this.name = name;
	}
	public void addTable(String key,TableStructure table) {
		this.tables.put(key,table);
	}
	public String getName() {
		return this.name;
	}
	public Map<String, TableStructure> getTables() {
		return Collections.unmodifiableMap(this.tables);
	}
	public TableStructure getTable(String tableName) {
		return this.tables.get(tableName);
	}
}
